-- GENERATED SPELL FOR [Chaos Watcher] --


function spell0_32235(pUnit, Event) --@Corrosive Saliva,n/a--
pUnit:FullCastSpellOnTarget(54527,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32235', 652, 1)
end

function spell1_32235(pUnit, Event) --@Optic Link,n/a--
pUnit:FullCastSpellOnTarget(54396,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32235', 12000, 1)
end

function Sorts_32235(pUnit, Event)
local choix_sorts_32235 = math.random(0, 1)
if choix_sorts_32235 == 0 then
pUnit:RegisterEvent('spell0_32235', 1, 1)
end
if choix_sorts_32235 == 1 then
pUnit:RegisterEvent('spell1_32235', 1, 1)
end
end

function mob32235_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32235', math.random(1500, 3000), 1)
end

function mob32235_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32235_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32235_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32235, 1, 'mob32235_Action')
RegisterUnitEvent(32235, 2, 'mob32235_Leave')
RegisterUnitEvent(32235, 3, 'mob32235_Kill')
RegisterUnitEvent(32235, 4, 'mob32235_Die')
